package com.ys.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ys.common.utils.PageUtils;
import com.ys.gulimall.product.entity.CategoryEntity;
import com.ys.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author yeswater
 * @email ruobairuo@gmail.com
 * @date 2021-07-16 16:28:06
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    
    List<CategoryEntity> listWithTree();
    
    void removeMenuByIds(List<Long> asList);
	
	/**
	 * 找到catelogId的完整路径
	 * [父/子/孙]
	 */
	Long[] findCatelogPath(Long catelogId);
	
	public void updateCascade(CategoryEntity category);
	
	List<CategoryEntity> getLevel1Categories();
	
	Map<String, List<Catelog2Vo>> getCatalogJson();
	
}

